package com.small.nacos.api.common;

/**
 * @Author zhoujin
 * @Date 2022/11/22 17:09
 */
public class ApiConstants {

    /**
     * 配置基础地址
     */
    public static final String CONFIG_BASE_PATH = "/v1/cs";

    /**
     * 获取配置地址
     */
    public static final String CONFIG_CONTROLLER_PATH = CONFIG_BASE_PATH + "/configs";

    /**
     * 配置监听地址
     */
    public static final String CONFIG_LISTENER_CONTROLLER_PATH = CONFIG_CONTROLLER_PATH + "/listener";

    /**
     * 通信模块
     */
    public static final String COMMUNICATION_CONTROLLER_PATH = CONFIG_BASE_PATH + "/communication";

    /**
     * 配置改变
     */
    public static final String DATA_CHANGE = "/dataChange";


    /**
     * 服务基础地址
     */
    public static final String SERVICE_CONFIG_BASE_PATH = "/v1/ns";

    /**
     * 获取服务地址
     */
    public static final String INSTANCE_CONTROLLER_PATH = SERVICE_CONFIG_BASE_PATH + "/instance";

    /**
     * 获取服务地址列表
     */
    public static final String INSTANCE_LIST_CONTROLLER_PATH = INSTANCE_CONTROLLER_PATH + "/list";

    /**
     * 获取心跳地址
     */
    public static final String BEAT_CONTROLLER_PATH = INSTANCE_CONTROLLER_PATH + "/beat";

}
